package com.itheima.web.mapper.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.cms.CmsSubjectProductRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CmsSubjectProductRelationMapper extends BaseMapper<CmsSubjectProductRelation> {


    @Select("select * from cms_subject_product_relation where product_id=#{id}")
    List<CmsSubjectProductRelation> getByProductId(Integer id);
}
